<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AccessProfile.aspx.cs" Inherits="Doctor_AccessProfile" MasterPageFile="~/FeaturedMember.master" Title="Find a Doctor - Access Your Profile" %>

<%@ MasterType VirtualPath="~/FeaturedMember.master" %>
<%@ Register Assembly="Manager" Namespace="SiteManager" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="MainTable" runat="server">

    <script>

        //<![CDATA[
 
        function popUp(i,ctl,lbl)
        {
            hndWin = window.open("AccessOptions.aspx?which=" + i + "&ctl=" + ctl + "&lbl=" + lbl, "win", "status=yes,width=400,height=400,toolbars=no,scrollbars=yes");
            hndWin.focus();
        }
       
        function check4fields(fn,ln,sp,gy,up)
        {    
                  
            if (((document.getElementById(fn).value.length==0)&&(document.getElementById(ln).value.length==0)) 
            || ((document.getElementById(ln).value.length==0)&&(document.getElementById(sp).value=="0")) 
            || ((document.getElementById(sp).value=="0")&&(document.getElementById(gy).value=="0")) 
            || ((document.getElementById(gy).value=="0")&&(document.getElementById(up).value.length==0)) )
            {
                alert("Not enough data to access profile!\nPlease fill any 4 fields.");
                return false;
            }
//            else
//            {        
//                showWorking();     
//            }
            return true;
        }
    
        //]]>
     
    </script>

    <div class="heading_inner">
        <div class="heading_topic">
            <h2>Doctor Registration</h2>
        </div>
    </div>

    <div class="cl"></div>

    <div class="left-side fl">
        <h2>Already registered? <a href="<%=Session["strHttps"]%>Doctor/doctorLogin.aspx" style="text-decoration: none; color: #FF4403">Login</a></h2>
    </div>
    <!---/ Left wrapper -->

    <!--**Content 1 Starts Here**-->



    <!--**Content 1 Starts Here**-->
    <div class="form_rgist">
        <div id="TabbedPanels1" class="TabbedPanels">
            <ul class="TabbedPanelsTabGroup">
                <li class="TabbedPanelsTab TabbedPanelsTabSelected" tabindex="0">DOCTOR REGISTRATION</li>
                <li class="TabbedPanelsTab" tabindex="0"><a href="<%=Session["strHttps"]%>Dentist/DentistAccessProfile.aspx" style="text-decoration: none">DENTIST REGISTRATION</a></li>
                <li class="TabbedPanelsTab" tabindex="0"><a href="<%=Session["strHttps"]%>Patient/patient_registration.aspx" style="text-decoration: none;">PATIENT REGISTRATION</a></li>
            </ul>
            <div class="TabbedPanelsContentGroup">
                <!--**Content 1 Starts Here**-->
                <div class="TabbedPanelsContent">
                    <div class="find_doc">







                        <div class="upper_reg">

                            <div class="lft_up_reg"></div>
                            <div class="center_stroke_reg">
                                <div class="form_head_reg">Enter Required Information</div>
                            </div>
                            <div class="right_up_reg"></div>
                        </div>


                        <div class="doc_info_reg">

                            <table width="623" border="0" cellspacing="3" class="table_info">

                                <tr>

                                    <td align="left">&nbsp;
                                <asp:MultiView ID="MultiView1" runat="server">
                                    <asp:View ID="AccessView" runat="server">
                                        <table width="623" border="0">
                                            <%-- class="reg_dtl"--%>
                                            <tr>
                                                <td colspan="2" class="reg_dtl">Please fill in the following information to create your Email ID and Password. 
To gain access to your profile, 4 fields must be verified.
       
                                                </td>
                                            </tr>

                                            <%if (lblAccessMessage.Text.Trim().Length > 0)
                                              { %>
                                            <tr>
                                                <td align="left" colspan="2" style="height: 17px">
                                                    <asp:Label ID="lblAccessMessage" runat="server" ForeColor="Red"></asp:Label></td>
                                            </tr>

                                            <%} %>
                                            <tr>
                                                <td width="141">FIRST NAME :</td>
                                                <td width="229">
                                                    <asp:TextBox ID="txtFirstName" runat="server" class="design" MaxLength="100" Width="298px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td>LAST NAME : </td>
                                                <td>
                                                    <asp:TextBox ID="txtLastName" runat="server" CssClass="design" MaxLength="100" Width="298px"></asp:TextBox></td>
                                            </tr>
                                          
                                            <tr>
                                                <td>SPECIALTY : </td>

                                                <td>
                                                    <div class="styled-select" style="width: 300px">
                                                        <asp:DropDownList ID="ddlSpecialty" runat="server"  Width="320px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>COUNTRY</td>

                                                <td>
                                                    <div class="styled-select" style="width: 300px">
                                                        <asp:DropDownList ID="ddlCountry" runat="server"  Width="320px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>MEDICAL SCHOOL GRUDATION YEAR</td>

                                                <td>
                                                    <div class="styled-select" style="width: 300px">
                                                        <asp:DropDownList ID="ddlGradYear" runat="server"  Width="320px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>UPIN</td>

                                                <td>
                                                    <asp:TextBox ID="txtUPIN" runat="server" CssClass="design" MaxLength="15" Width="298px"></asp:TextBox></td>
                                            </tr>
                                            <!-- NEW ITEMS ENDS -->
                                            <tr><td colspan="2"></td></tr>
                                            <tr>
                                                <td valign="top">ENTER THE CODE SHOWN<font color="red">*</font>
                                                </td>

                                                <td>
                                                    <cc1:CaptchaControl ID="captcha" runat="server" CaptchaBackgroundNoise="low" CaptchaFontWarping="none"
                                                        CaptchaHeight="45" CaptchaLineNoise="none" CaptchaWidth="200" CssClass="bodytxt" LayoutStyle="Vertical" Text=""></cc1:CaptchaControl>
                                                    <span class="small-text" style="font-size: 7pt"><strong>This helps prevent automated
                                                        registrations.</strong><br />
                                                    </span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="3" align="center">
                                                    <asp:Button ID="btnSubmit" runat="server" ImageUrl="~/images/btn-submit.gif" Text="Submit" CssClass="buttonclass" Width="120px"
                                                        OnClick="btnSubmit_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:View>
                                    <asp:View ID="CreateView" runat="server">
                                        <table width="98%">
                                            <tr>
                                                <td colspan="2" class="reg_dtl">
                                                    <!-- Please fill up the following&nbsp; information to create Email Id and Password -->
                                                    Your information has been verified. You may edit your account, change your password, or Become a Featured Doctor.</td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="height: 1px"></td>

                                                <td style="height: 1px; width: 393px;">&nbsp;</td>
                                            </tr>
                                            <%if (lblCreatMessage.Text.Trim().Length > 0)
                                              { %>
                                            <tr>
                                                <td align="left" colspan="2" style="height: 17px">
                                                    <asp:Label ID="lblCreatMessage" runat="server" ForeColor="Red"></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td align="left" colspan="2" style="height: 7px">&nbsp;
                                                </td>
                                            </tr>
                                            <%} %>
                                            <tr>
                                                <td width="141">EMAIL :</td>
                                                <td width="229">
                                                    <asp:TextBox ID="txtEmail" runat="server" CssClass="design" MaxLength="100" Width="298px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td>PASSWORD :</td>

                                                <td>
                                                    <asp:TextBox ID="txtPass1" runat="server" CssClass="design" MaxLength="50" TextMode="Password"
                                                        Width="300px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td>RE-ENTER PASSWORD :</td>

                                                <td>
                                                    <asp:TextBox ID="txtPass2" runat="server" CssClass="design" MaxLength="50" TextMode="Password"
                                                        Width="298px"></asp:TextBox></td>
                                            </tr>
                                            <!--
                                                 CODE COMMENTED AS PER REQUEST :K, 8 JANUARY 2007
                                                  <tr>
                                                     <td>
                                                         
                                                         Fellowship</td>
                                                     <td style="width: 3px; height: 17px">
                                                         :</td>
                                                     <td>
                                                         <asp:ListBox ID="lst_fellow" runat="server" Width="270px" CssClass="small-text"></asp:ListBox></td>
                                                 </tr>
                                                  <tr>
                                                     <td>
                                                         Advanced Training</td>
                                                     <td style="width: 3px; height: 17px">
                                                         :</td>
                                                     <td>
                                                        <asp:DropDownList ID="ddlAdvTraining" runat="server" CssClass="small-text" Width="150px">
                                                              
                                                            </asp:DropDownList></td>
                                                 </tr>
                                                  <tr>
                                                     <td>
                                                         Accepting New Patients</td>
                                                     <td style="width: 3px; height: 17px">
                                                         :</td>
                                                     <td>
                                                        <asp:DropDownList ID="ddlnewPat" runat="server" CssClass="small-text" Width="150px">
                                                              
                                                            </asp:DropDownList></td>
                                                 </tr>
                                              -->
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <asp:Button ID="btnsubmitCreate" runat="server" CssClass="buttonclass" ImageUrl="~/images/btn-submit.gif"
                                                        OnClick="btnSubmit_Click" Text="Submit" /></td>
                                            </tr>
                                        </table>
                                    </asp:View>
                                    <asp:View ID="View1" runat="server">
                                        <asp:Label ID="lblMessageFinal" runat="server"></asp:Label>
                                    </asp:View>


                                    <asp:View ID="ViewMultiMatchProfile" runat="server">
                                        <table width="98%">
                                            <tr>
                                                <td colspan="2" class="reg_dtl">
                                                    <!-- Your profile cannot be verified at this time.&nbsp; -->
                                                    Your profile cannot be verified at this time.  Please complete the below information and a FindaDoc Account Service Representative will review your information and be in touch within 24 hours.
                                                </td>
                                            </tr>

                                            <tr>
                                                <td align="left" colspan="2">
                                                    <asp:Label ID="Label1" runat="server" ForeColor="Red" Visible="False">Please complete the below information and a FindaDoc Account Service Representative will review your information and be in touch within 24 hours via email.</asp:Label></td>
                                            </tr>
                                            <tr id="trErr" runat="server">
                                                <td align="left" colspan="2">&nbsp;<asp:BulletedList ID="blstErrors" runat="server" ForeColor="Red">
                                                </asp:BulletedList>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td width="141">FIRST NAME :</td>
                                                <td width="229">
                                                    <asp:TextBox ID="txtMMPFName" runat="server" CssClass="design" MaxLength="100" Width="298px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td>LAST NAME :</td>

                                                <td>
                                                    <asp:TextBox ID="txtMMPLName" runat="server" CssClass="design" MaxLength="100" Width="298px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td>SPECIALTY :</td>

                                                <td>
                                                    <div class="styled-select" style="width: 300px">
                                                        <asp:DropDownList ID="ddlMMPSpec" runat="server"  Width="320px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>SUB-SPECIALTY :</td>

                                                <td style="width: 393px; height: 17px">
                                                    <div class="styled-select" style="width: 300px">
                                                        <asp:DropDownList ID="ddlMMPSubSpec" runat="server"  Width="320px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>ADDRESS :</td>

                                                <td>
                                                    <asp:TextBox ID="txtMMPAddress" runat="server" CssClass="design" MaxLength="15" Width="298px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>CITY :</td>

                                                <td>
                                                    <div class="styled-select" style="width: 300px">
                                                        <asp:DropDownList ID="ddlMMPCity" runat="server"  Width="320px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>STATE :</td>

                                                <td>
                                                    <div class="styled-select" style="width: 300px">
                                                        <asp:DropDownList ID="ddlMMPState" runat="server"  Width="320px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>ZIP :</td>

                                                <td>
                                                    <asp:TextBox ID="txtMMMPZip" runat="server" CssClass="design" MaxLength="15" Width="298px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>PHONE NUMBER :</td>

                                                <td>
                                                    <asp:TextBox ID="txtMMPPhone" runat="server" CssClass="design" MaxLength="15" Width="298px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>E-MAIL :</td>

                                                <td>
                                                    <asp:TextBox ID="txtMMPEMail" runat="server" CssClass="design" MaxLength="15" Width="298px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>MEDICAL SCHOOL :</td>

                                                <td>
                                                    <asp:Label ID="lblMedSch" runat="server" CssClass="bodytxt" Text="NONE"></asp:Label>
                                                    <a id="lnkMedSch" runat="server" href="javascript:void(0)">[Edit]</a>&nbsp;&nbsp;
                                                        <asp:HiddenField ID="hdnMedSch" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>MEDICAL SCHOOL GRADUATION YEAR :</td>

                                                <td>
                                                    <div class="styled-select" style="width: 300px">
                                                        <asp:DropDownList ID="ddlMMPGradYear" runat="server"  Width="320px">
                                                        </asp:DropDownList>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>UPIN</td>

                                                <td>
                                                    <asp:TextBox ID="txtMMPUPIN" runat="server" CssClass="design" MaxLength="15" Width="300px"></asp:TextBox></td>
                                            </tr>
                                            <!-- NEW ITEMS ENDS -->
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <asp:Button ID="imgBtnSendMail" runat="server" Text="Submit" CssClass="buttonclass" OnClick="imgBtnSendMail_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:View>



                                </asp:MultiView>

                                    </td>

                                </tr>

                            </table>
                        </div>



                    </div>
                </div>
            </div>
        </div>


    </div>
</asp:Content>
<asp:Content ContentPlaceHolderID="scriptContent" runat="server">
    <script>
 
        //<![CDATA[
  
        //You should create the validator only after the definition of the HTML form		
        step=<%=MultiView1.ActiveViewIndex%>  
//        alert(step)    
	if(step==1)
        {
	    
            var frmvalidator  = new Validator("aspnetForm","<%=btnsubmitCreate.ClientID%>");	     
	    
            frmvalidator.addValidation("<%=txtPass1.ClientID %>","req","Please Enter password.");	
            frmvalidator.addValidation("<%=txtPass1.ClientID %>","minlength=6","Please at least 6 Char.");	
            frmvalidator.addValidation("<%=txtPass2.ClientID %>","req","Please Enter confirm password.");		   	    
            frmvalidator.addValidation("<%=txtPass2.ClientID %>","compare","<%=txtPass1.ClientID %>|Passwords not matched.");
            frmvalidator.addValidation("<%=txtEmail.ClientID %>","req","Please Enter Correct Email Id");		
            frmvalidator.addValidation("<%=txtEmail.ClientID %>","email");	
        }	 
        else if(step==3)
        {
	 
            var frmvalidator  = new Validator("aspnetForm","<%=imgBtnSendMail.ClientID%>");	     
	    
            frmvalidator.addValidation("<%=txtMMPFName.ClientID %>","req","Please enter First Name.");	
            frmvalidator.addValidation("<%=txtMMPLName.ClientID %>","req","Please enter Last Name.");		    
            frmvalidator.addValidation("<%=ddlMMPSpec.ClientID %>","req","Please select Specialty.");		
            //	    frmvalidator.addValidation("<%=ddlMMPSpec.ClientID %>","gt","0|Please select Specialty.");
            frmvalidator.addValidation("<%=ddlMMPSubSpec.ClientID %>","req","Please select Sub-Specialty.");
            //	    frmvalidator.addValidation("<%=ddlMMPSubSpec.ClientID %>","gt","0|Please select Sub-Specialty.");
            frmvalidator.addValidation("<%=txtMMPAddress.ClientID %>","req","Please enter address.");    
            frmvalidator.addValidation("<%=ddlMMPCity.ClientID %>","req","Please select a City.");		
            //	    frmvalidator.addValidation("<%=ddlMMPCity.ClientID %>","gt","0|Please select a City.");		
            frmvalidator.addValidation("<%=ddlMMPState.ClientID %>","req","Please select a State.");	
            //	    frmvalidator.addValidation("<%=ddlMMPState.ClientID %>","gt","0|Please select a State.");
            frmvalidator.addValidation("<%=txtMMMPZip.ClientID %>","req","Please enter ZIP Code.");
            frmvalidator.addValidation("<%=txtMMPPhone.ClientID %>","req","Please enter Phone Number.");		
            frmvalidator.addValidation("<%=txtMMPEMail.ClientID %>","req","Please E-Mail ID.");	
            frmvalidator.addValidation("<%=txtMMPEMail.ClientID %>","email","Please enter a valid E-Mail ID.");		    	    
            frmvalidator.addValidation("<%=ddlMMPGradYear.ClientID %>","req","Please select Medical School Graduation Year.");		
            //	    frmvalidator.addValidation("<%=ddlMMPGradYear.ClientID %>","gt","0|Please select Medical School Graduation Year.");
            frmvalidator.addValidation("<%=txtMMPUPIN.ClientID %>","req","Please enter UPIN.");		
	    	
        }	
	
        /*try{
          workingWin.close(); }catch(e){}    */
      
        //]]>
    
    </script>

</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="InnerRight" Visible="false"></asp:Content>

